import { createStore } from 'vuex'
import { mutations } from './mutations'
import { actions } from './actions'

const store = createStore({
  state: {
    typeId: 'user001',
    showName: true,
    count: 0,
    user: {
      userId: 0,
      userPortrait: '',
      userNickname: '',
      userRealname: '',
      userUid: '',
      userTel: '',
      userGroup: 1,
      userSex: 1,
      userPassword: ''
    },
    role: ''
    // virAPI's token:$2a$10$Ueqrg75Ytf5lX8Kuwd3y7uGaPU05ipfMA/Ul58dP3fAJNOyS3Njqu
  },
  getters: {
  },
  mutations,
  actions
})
export default store
